/**
 * 
 */
package com.ofek.eventos.net.lks.test;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author Ofek
 *
 */
public class RequestID implements Serializable {
	public String src;
	public String dest;
	public long id;
	public RequestID(final String src, final String dest,final long id) {
		this.src = src;
		this.dest = dest;
		this.id = id;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(final Object obj) {
		if ( obj instanceof RequestID ) return dest.equals(((RequestID) obj).dest) && src.equals(((RequestID) obj).src) && id==((RequestID) obj).id ;
		return false;
	}
	/**
	 * 
	 */
	public RequestID() {
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return  "("+src+"->"+dest+")";
	}
	@Override
	public int hashCode() {
		return Objects.hash(id,src,dest);
	}
}
